package com.kric.boot;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @ClassName BootConfiguration
 * @Author: zhaozy
 * @Date: 2018-8-1 16:32
 * @Description:
 */
@Configuration
public class BootConfiguration implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        配置自定义静态资源路径
        registry.addResourceHandler("/kric/resources/**").addResourceLocations("classpath:/static/");
    }
}
